﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using LibraryModels;
using System.Data;

namespace LibraryIDAL
{
    /// <summary>
    /// InterfaceName: ITabBook
    /// Auther:Leo.wl
    /// Time:2010-04-14
    /// 接口层ITabBook 的摘要说明。
    /// </summary>
    public interface ITabBook
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(int BookID);
        /// <summary>
        /// 增加一条数据
        /// </summary>
        int Add(TabBook model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        int Update(TabBook model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        int Delete(int BookID);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        TabBook GetModel(int BookID);
        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);
        /// <summary>
        /// 获得前几行数据
        /// </summary>
        DataSet GetList(int Top, string strWhere, string filedOrder);
        /// <summary>
        /// 根据分页获得数据列表        
        /// </summary>
         DataSet GetList(string fldStr, string strWhere, int PageIndex, int PageSize, string keyFld, string strSort, int isGetCount, string tableName);
        #endregion  成员方法
    }
}
